IMNativeDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | IMNativeDelegate.h |
Overview
- A listener for receiving notifications during the lifecycle of an native ad. *
- Note All the events in this listener will be invoked on your application’s UI thread. *
- In most cases your application will need to listen for the following events on an native ad
The outcome of an ad request (if the request succeeded or failed); see nativeDidFinishLoading:(IMNative)native; and native:(IMNative)native didFailToLoadWithError:(IMRequestStatus*)error;
The ad opened an overlay that covered the screen. This means that the user can no longer interact with your application; see nativeDidPresentScreen:(IMNative*)native;
The ad opened overlay was dismissed. The user is now free to interact with your application; see nativeDidDismissScreen:(IMNative*)native;
A user interaction with the ad will result in the User leaving your application context; see userWillLeaveApplicationFromNative:(IMNative*)native;
Tasks
-
– nativeDidFinishLoading:required method -
– native:didFailToLoadWithError:required method -
– nativeWillPresentScreen:required method -
– nativeDidPresentScreen:required method -
– nativeWillDismissScreen:required method -
– nativeDidDismissScreen:required method -
– userWillLeaveApplicationFromNative:required method -
– nativeAdImpressed:required method -
– native:didInteractWithParams:required method -
– nativeDidFinishPlayingMedia:required method
Instance Methods
native:didFailToLoadWithError:
Notifies the delegate that the native ad has failed to load with error.
- (void)native:(IMNative *)native didFailToLoadWithError:(IMRequestStatus *)errorDiscussion
Notifies the delegate that the native ad has failed to load with error.
Declared In
IMNativeDelegate.hnative:didInteractWithParams:
Notifies the delegate that the native ad has been interacted with.
- (void)native:(IMNative *)native didInteractWithParams:(NSDictionary *)paramsDiscussion
Notifies the delegate that the native ad has been interacted with.
Declared In
IMNativeDelegate.hnativeAdImpressed:
Notifies the delegate that the native ad impression has been tracked
- (void)nativeAdImpressed:(IMNative *)nativeDiscussion
Notifies the delegate that the native ad impression has been tracked
Declared In
IMNativeDelegate.hnativeDidDismissScreen:
Notifies the delegate that the native ad has dismissed the presented full screen content.
- (void)nativeDidDismissScreen:(IMNative *)nativeDiscussion
Notifies the delegate that the native ad has dismissed the presented full screen content.
Declared In
IMNativeDelegate.hnativeDidFinishLoading:
Notifies the delegate that the native ad has finished loading
- (void)nativeDidFinishLoading:(IMNative *)nativeDiscussion
Notifies the delegate that the native ad has finished loading
Declared In
IMNativeDelegate.hnativeDidFinishPlayingMedia:
Notifies the delegate that the native ad has finished playing media.
- (void)nativeDidFinishPlayingMedia:(IMNative *)nativeDiscussion
Notifies the delegate that the native ad has finished playing media.
Declared In
IMNativeDelegate.hnativeDidPresentScreen:
Notifies the delegate that the native ad has presented a full screen content.
- (void)nativeDidPresentScreen:(IMNative *)nativeDiscussion
Notifies the delegate that the native ad has presented a full screen content.
Declared In
IMNativeDelegate.hnativeWillDismissScreen:
Notifies the delegate that the native ad would be dismissing the presented full screen content.
- (void)nativeWillDismissScreen:(IMNative *)nativeDiscussion
Notifies the delegate that the native ad would be dismissing the presented full screen content.
Declared In
IMNativeDelegate.hnativeWillPresentScreen:
Notifies the delegate that the native ad would be presenting a full screen content.
- (void)nativeWillPresentScreen:(IMNative *)nativeDiscussion
Notifies the delegate that the native ad would be presenting a full screen content.
Declared In
IMNativeDelegate.huserWillLeaveApplicationFromNative:
Notifies the delegate that the user will be taken outside the application context.
- (void)userWillLeaveApplicationFromNative:(IMNative *)nativeDiscussion
Notifies the delegate that the user will be taken outside the application context.
Declared In
IMNativeDelegate.h